package com.own.component.util.excel;

import com.own.component.util.excel.util.read.ExcelRead;
import com.own.component.util.excel.util.write.record.ExcelRecord;

/**
 * Excel
 *
 * @author chenxueli
 * @date 2022-09-23 10:39:00
 */
public class Excel {

    /**
     * 写入对象
     *
     * @return excel写入对象
     */
    public static ExcelRecord write() {
        return new ExcelRecord();
    }

    /**
     * 文件名称构造
     *
     * @param fileName 文件名称
     * @param addSheet 是否创建工作簿
     */
    public static ExcelRecord write(String fileName, boolean addSheet) {
        return new ExcelRecord(fileName, addSheet);
    }

    /**
     * 读取对象
     *
     * @return excel读取对象
     */
    public static <T> ExcelRead<T> read() {
        return new ExcelRead<>();
    }

}
